fix indentations and formatting