reverted state variable check