move function fixed