correcting improperly terminated statements in three files