Change .all to .each to make iteration work