final changes to pass_fail_calc