String divide() {
	    cleanY = true;
	    minusOne = 1;
	    if (enterX) {
	        enterX = false;
	        minusOne = 1;
	        y = x;
	        System.out.print(equalCalled);
	        if (equalCalled) prevOpn = "";
	        prevOpn = "divide";
	        equalCalled = false;
	        return format(x);
	    } else {
	        if (canCalculate) {
                String output = equals();
                y = result;
                prevOpn = "divide";
                equalCalled = false;
                return output;
            } else {
                prevOpn = "divide";
                equalCalled = false;
                return format(x);
            }
	    }
	}