clearstate can be used