process flow diagram for mining