first upload. Relevant code