corrected error with warning