it works fine for my test cases? is there an edge case i am missing, or what can you tell me is wrong with my code?