format code for production