tried to enhance code. cleaned up duplicate vars and updated code with the single vars kept.trying to make highlight more efficient.