remove useless tmpVariable