move return into get doc