bug fix for twad method