CHANGED:update the code with NSLog parameters