removed global move function