modified:   HoG.py