in doing saving states