assign protected attributes directly to the object