had a buggy value for numebr of pages