update go function