renaming function for more clarity