working on the bookshelf functions
Merged.