added method to get accuracy