updated to support the same number of fractions as columns are defined