remove redundant copy