refactoring
refactored for crashing-on-fast-changing-modes; fixing: stucked on fast changing modes