write method to make tests pass