wrote the hash making version, not tested yet