create endFile before push