adding back missing ref var. this might be the thing.