one optimization to message.h