edited explore into a new method so break works correctly