sustain associated objects when assigning attributes