replaced println with NSLog