reduce Space done with test cases