add generate to constrs
merge constrs