refactor: use native cloning function