just add attributes and references if size > 0
container