few varriables added to plot the output result