fixing the dynamic variable name