remove duplicate variable declarations