last of the refactoring for get_stories