fail condition to open function