changed function name for plotting