The function of zinc electrode in a galvanic cells is that it