add transform-nan-inf results properly