removing unnecessary clones