fix indents and missing }