adding range-based for-loops