assign all attributes at once
fixed object equality bug