reomved unnecessary copy statements