better method to find accuracy