update print colored message logic