add index functionality