remove duplicate variable that caused error