setting dynamic attributes