added output plot