plotting ver. 1