changing the way tree is cached