first try at Hgg
fixed silly bug in Hgg