adding rudimentary cloning of elements