changed offset to short