working on update function, the story one works, but not the chapter one quite yet