only do this optimization if offset is 0