added the getPOS method