save the attributes