update attibutes