set committed variable properly