for_each moves when it returns