how to detect manipulation