fixed instanceof thing