steps filter_mismatch and uniqueing