refactoring fails 2