to fix context switching