added free space inventory
added page id iterator