fixed duplicate variable name