refactor
function chains of shorter length are now deemed fitter