started implementing madd