make doctests pass