update j_val_calucation