working on create_constraints