added index if logged out