fixed placement of "else {" to match file format.