added constraints for durations1-5
v3