end of class upload