iterate through formatting and content