restrict  movements on  bad blocks/refactored/bugs to fix