not getting correct answer, but all functions work