with free and all test cases passed