remove some useless variables