improved mesage summary generation