WORKING FOR HALF OF TEST CASES