still tweaking forecast portion of code