restructuring bias corrections into analytic dir