refactoring... getting error wrong signature