added class updating