changing plot function name and invocation