new loops with lists instead of dictionaries 12/26/2014 with version increase