fixed indentation and syntax warnings.