refactor: update of attr assignment