set error level when error
corrected script