added index and processing