removed unnecessary copy statement