refactor down