remove condition hook