added plot summary function