update dynamic class