remove unnecessary clones