improve association attributes assignments