delete useless variables