modification to copy feature