updated 'get' definition and doctest