refactor check_adjacent