delete useless lines