added helper emthods for is_instance