removing opttree code