warnings fixed, NSLog removed