update a add leaves