storing to attributes