updated function named to be more pythonic