new code for aa and delta