added argument to choose adjacent features