renaming two functions to give them a better visibility of functionality.