changing wadd function based on Rogers direction