update state class add/rem