adding max page size option