adding ad-hoc gmax/perm conditions as insanely large heaviside compositions