added some () that made app switching work