by products of mining process