add functions for update single file