adjusted saving state cursor