added constraints to offer and answer