added logic to expense index for after freeze