remove some redundant type declaration.