function names match to C code