kernel function in a single file