adding id to message
addingn history to message