cleaning for publishing