add var and log it to stop track loop