switch offset and divIdx