fixed formatting and indentation