fixed doctest in take()