add publish function