getPos method