file hash fixed, writing to file