using member pos()