change attribute type in associated_content loop