public static void commit() {
        try {

            CoordinatorGUI.textArea.append("Commenizing completion phase with succses..." + "\n" + "\n");
            CoordinatorGUI.textArea.append("Signaling nodes to commit to task..." + "\n" + "\n");
            String goForIt = "commit";
            buf = goForIt.getBytes();
            packet = new DatagramPacket(buf, buf.length, group, 4446);
            socket.send(packet);
            getResponses();
            if (hasResponse) {
                if (responses.size() == nodes) {
                    CoordinatorGUI.textArea.append("Responses from nodes regarding completion of task: " + "\n" + "\n");
                    for (int j = 0; j < nodes; j++) {
                        CoordinatorGUI.textArea.append("done - wrote this to file: " + responses.get(j) + "\n" + "\n");
                        if (!responses.get(j).equals(task)) {
                            CoordinatorGUI.textArea.append("this response is not approved will singal rollback..." + "\n" + "\n");
                            done = false;
                        }

                    }
                } else {
                    done = false;
                }
                if (done) {
                    CoordinatorGUI.textArea.append("Transaction completed succsesfully..." + "\n" + "\n");
                } else {
                    String rollback = "rollback";
                    buf = rollback.getBytes();
                    packet = new DatagramPacket(buf, buf.length, group, 4446);
                    socket.send(packet);
                    logError();
                }
            }
        } catch (IOException ex) {
            System.err.println(ex);
        }
    }