update expire block and state variables