testing contour filtering