before make downloaded a file