added forward calculation script