Get rid of duplicate variable