before autocomplete