add, remove, tree and compile fn from tree