Your are changing the name of the element each time??!! I don't know why? Sometimes it is rockshelter sometimes it is rockshelt, sometime it is artefact and sometime it is artefacts. So your when I pass artefact for example to your code it will go threw exception because it is artefacts. Sincerely, Kia