fixed index bug in gool.py