added build_offset_class