solved remove_adjacent