remove a little bit of unnecessary copying