clean up code and uses hash for plain text