getOffset() method added