correct open function call