small optimization in function compactify in module Gg