Theres nothing wrong with the code. The solution is so easy I'm too embarrassed to write it