fixed problems with indentation and brackets
fixed problems with indentation and brackets