two main methods of mining