update attached class