had forgotten 'resid.type' at a couple of spots