adapt for publish