switch offset and limit