trying to eliminate double constraints