update code with new function names in plot commands