remove unneded var declarations