put it into function
save all poc to seg