added begining selection condition to find highlights