fix copy method