removing publish func