added security to hash