TPGR: use gr as function style