Dictiorary instead argument lsit also for createMessage() function