update file with main tag