add the function to calculate approx state with the basic way