changed offset to use default-float