changed .c to .cpp