refactor de record