updated length