applied elegant print_msg in 32 bit