updated error warning