change plot function call