hex to int converter working