upgrade function go and autocomplete