wrong refactor