test using offsets