move the call for the DA outside the for loop