now able to plot output overlaid onto the input