renamed function pw to pwGen