move validity check