add elemnts in tree. warning