adding rudimentary copy function, not dynamic.