remove dependance on tree