fixed variable namings and declarations
added semicolons