proper mocking fn