removed extern "C" from header file