modify the task of pwd generator