remove unnecessary copy