mv to function