updated aa by improving procedure.