renaming schemas with appropriate functions