checking and publish