make sure state is zeroed