refactore lore model