with merging rect and initional filter of rect