working on templating move function, currently not working