skip messages with max id