added indexTypeExist