updated message focus algorithm