remove num_open function