implement getPos