improve flash hash