improved flick detection