changed message id from int to long