making changes based on feedback; changing function name to more pythonic name that also suggests the meaning better