fixed isSuccessful() method