changed chapter from int to text