create and use pos tabele