updated the mine method