setting a single attribute