updating formatting and indentation