use isinstance