save and load working, fixed max and min chapter