duplication added + changed some ints to nums when calculating percentage