updated doprint to use tuple
updated message to use tuple