compare type against type and not just use it as or condition!