forgot to add the len to the offset