fixed that a NSError* can be used as parameter