refactor in process