fixes plotting printout problems