Update publisher.cpp