DRY - define the index call once