added adjacency filter + down sample