repair data passed into the state check function