use foreach