git rid of duplicate variable declaration