remove duplicated variable declaration