fixing tetcases