change recursive loop for upload recent changes