added NSLog statement