basic shake detection