making test cases pass