correctly renaming function