tree datastruture added with new specs