set offset property optional and 0 as default value