changed hash generated method