passed string of variable name instead of the actual variable