updated renamed function in upgrade