code correction

forget an variable definition and some semicolons