hook for highlighting range