upload function changes