interaction detection