function to get accuracy added