initial version for plot1