fixed as many testcases as possible