change emit message for different tyeps of messages