fixed bug in case3