move semantics in main

forgot it from earlier