amend code formatting