changed attributes to attr