refactoring function name to better describe the refactored behavior