adjust shake threshold