remove reduplicative type checking