upload algo