debug: undefined variables