c files for fast fitting