election indexing not working?