private void dumpChanges() {
        if (plottedSNP != null) {
            JPanel jp = (JPanel) plotArea.getComponent(1);
            
            //check if this is the end of a marker list
            // if it is there will be no changes to commit
            if (!endOfList) {
            	ArrayList<String> collections = db.getCollections();
                for (int i = 0; i < collections.size(); i++) {
                	PlotPanel plotPanel = (PlotPanel) jp.getComponent(i);
                    PlotData plotData = plotPanel.getPlotData();
                    if (plotData.changed) {
                        db.commitGenotypeChange(collections.get(i), plottedSNP, plotData.getGenotypeChanges());
                    }
                }
            }
        }
    }