adaptive threshold for approach

dont go backwards