corrected error for check