implement vanish logic