wrote report function for accuracy