removed extra comment and fixed variable name typo