added support for left and right limits
added support for left and right limits