added index to public