updates for autocomplete functionality