modify function go