added basic functions for replacing old ones