able to get length and offset