change function name to reflect its function more appropriately