more pythonic ^^