fixed one variable name and some style nits