working with typeahead