updated to use slugs