memsetting state data to 0