reading tree macro added