it satisfies all the test cases