re adding commented previous version of madd