doesn't break, but logic is still faulty for later test cases