print avg error