updates class