initialization of messageSent