prevent flashging