put register in front of upload