update syntax to a more python-esque way