i tried like delete_if, but it was slower.