plotting debug