added utility method for printing hex