implemented totalcorrect method