up date code for empty file