made copyings recursive