add publish method