update error in classes