delete useless check