change aa.A to aa[A], etc