Missing "declare" for vars, spurious semi colon removed