remove "for" attributes and nest