amend content loop