debug variable checks