delete useless snippet