syntax, variable errors fixed further