refactored books into locations