PEP8
fix function references. how did this thing run at all?