In the first phase, indexes are stored. In the second phase, indexes are checked for validity and converted to pointers