made debug variable accessible