updated comment
simplified calculation of ratio error