updated code for autocompletes in "first call"