restrict page size instead of throwing error