moved boundary generation upward to a more sensible place.