adds index number to the id of the message