added constratints