how to stop context switching