changed gen hash