kinda not pythonic, but ok.