fixed duplicate variable