added proper write for 30day ave SW