optimizing factor imputation