update length cluster