rollback for class