do you have to set attributes this way?