start of plotting