initialize all offsets to be 0