added pure c function test