modified salt.py