improved highlighting rule for gradient