still working on the sod calculations