removed unnecessary move (this is done automatically in c++11)