add tree and tree map