remove unneeded saveState