fix auxiliary variable problem