linear division now works :) beware > 20 is overkill