added comment and fixed indents