changed NSLog functions