most of the KF generating functions in C now