add index for publishing