making SOD adjust to 3D calculations. Working on actually math next.