modify move function

add option for move function