added class detect after teardown