changing setattr method sintax