fixed gridded SF0 function, still resolving fluctuation issue