handling movemove/out