replace 'copy' step of large/small Aabbs by indices