trying to integrate gramm_expand