support adcanced variable name now (but not tested)
fix function. typo.