getMines function completed