first draft of -plotDetection