detection works