tree 3 code added