updating printing functions.