correct insertion for messages