added email index check