remove useless variables