another function for reading/spitting into C code