flow chart for mining line