format and publish