reverseKGroup.py with bugs...