works with 1 message but not > 1 messages