updating hash generator script