made undefined variables an error instead of a warning