set error check flag