smaller change to powlib.py