fix the problem and got the right result