add range tree comment and remove useless stuff