removed unnecessary copy