added check for existing salt