adjusted x/y offset limits