add print in hex func