fixed to get size and page