fixed accuracy calculation