replaced spaces in "} else {" with newlines.