slight cleanup of book sales script