detecting snap is working