adding better whisper function and typeahead