work
change paramters to save state