comment typeahead code