sets attributes