adapted to mlk::cnt::remove_all_if