looped over each item