document shape tweak