clear refactor