corrected perform_impute