add erode and dilate