"undefined variable" warning