updating lxy tree, changing a bit the api
updating