remove outdated isSameType test