replaced all println with NSLog