added some new methods for updating classes