replacing old vars