new plotAll function