add indices to speed queries up