removing both diag and copy(x, y)