Remove undefined decl. & add missing semicolon