reset length to uint32