finished gmdraw (still buggy though)