add function to extract the exp cate function