change messages to message_lambdas