can calculate the accuracy