for loop formatted for better readability