adjust df given equality constraints