broken refactor