imputing method code