redefine type after record is resolved