refine some unclear code ,makes PasswordChanger more complete