avoid dead end