cleaning up for publishing