fix signature of sub istype