rename the c file to m file because teh code cannot compile in xCoe 6 with iphone devices