function renamed to reflect its purpose