added sm and xs offsets