redo pretty_bounds to be less complex #437