problems with generateHash