update to definition of nPos, suggested by @srowen