added index and events