renaming function to be more semantic