use for_each