limiting nubmer of messages