fix add contraints