narrow passage and check boundary