i was deleting the elements before i cuold access them