added range based for loop