applying semicolon and using var