- changed to match updated story counter structure
- cleaned up code