added twd calcs