all test cases working - except for clipping