add sender and type to sending message