build and format