Move function
rewrite