completes f2c.js functions