fixed undeclared variables in introdata function