added doctest