parsing refferenced elements