updating len to current