correcting refactor errors