function added to bookfunctions, but it wont work just yet