process to be followed while mining is done