implemented automatic variable name mapping