added y axis constraint