make indexes for both