fixed some typos with ending brances and misplaced semi colon