proximity detection and highlighting working