renames function