remove extra semicolon
move variable declaration up for c89 happiness
remove extra comma