fixed indentation and syntax issues. blame john