added debug plots