removing unused salt code for clarity