modified shake threshold