updated sample, stricter typing for enabling gestures