file hash fixed, writting to file