updated additional_attrs code block