trying to calculate accuracy