some changes to the password generator