got rid of redundant copy