isInstance should be isinstance