returning correct array position in madd