fixed accuracy problem