updated printRangeTree