check page size at each iteration