refactored story glue