before adding index to emails