calculate signature's after writing temp file
renamed function