add attention in index