using clone instead of copy in the project