add NSlog in main