changed setattribute and getattribute to set and get