AAARGHRGHRGHRGHR alpha threshold algorithm