fixing copy method