update the auto complete function
update the auto complete function