added an alternate way of doing division, which solved one problem and created another