fold the collection rather than multiple assigments