make things a bit more pythonic