refactoring for check upload_time