updating the final file