handle x offset