Tree buid
*last element bug