updated sparseAMA