changed from hex to auto sprintf