cleaned up Index to parse pages