added a way to get an offset of records