kind of more pythonic