refactor resume