re typed preserve case print function