modify class struct