fixing last part, can check if the file is already up to date