turn it to egsType