modified hashF