trying to compute accuracy