figured out how to deal with fractions and Pack-Unpack procedures