Added missing semicolon
Got rid of superfluous extra variable