changed attributes to objects