add fn for data upload